function search() {

	$(query_order_form).submit();
}

function toEmpty() {
	 
	$("#orderNo").val(""); 
	$("#prodName").val(""); 
	$("#exchanger").val(""); 
	$("#exchangeType").val(""); 
	$("#exchangeStatus").val(""); 
	$("#startDate").val(""); 
	$("#endDate").val(""); 
}

function initPage() {
	document.getElementById("page").value = '1';
}
function trims(str) {
	return str.replace(/^\s+|\s+$/g, "");
}
   
function showDelResult(path,id){
	layer.confirm("确定删除该记录吗？",function(){
		$.ajax({
	 		url:path+"/sms_email/del_sms_msg",
	 		data:{"id":id}, 
	 		type:"post",
	 		dataType:"text",
	 		success:function(message){
	 				layer.msg(message ,{icon:1,time:1500},function(){
	 					search();
	 				});
	 		},
	 		error:function(){
	 			layer.msg('删除失败!',{icon:1,time:1000},function(){});
	 		}
	 	});	
	});		

	/*
	var index = layer.open({
	    type: 2,
	    title: ' ',
	    scrollbar: false,
	    content: path+"/sms_email/del_sms_msg?id="+id,
	    area: ['200px', '200px']
	});
*/
 
}


function showResResult(path,id){
	layer.confirm("重发短信吗？",function(){
		$.ajax({
	 		url:path+"/sms_email/res_sms_msg",
	 		data:{"id":id}, 
	 		type:"post",
	 		dataType:"text",
	 		success:function(message){
	 				layer.msg(message ,{icon:1,time:1500},function(){
	 					search();
	 				});
	 		},
	 		error:function(){
	 			layer.msg('重发失败!',{icon:1,time:1000},function(){});
	 		}
	 	});	
	});		

	/*
	var index = layer.open({
	    type: 2,
	    title: ' ',
	    scrollbar: false,
	    content: path+"/sms_email/del_sms_msg?id="+id,
	    area: ['200px', '200px']
	});
*/
 
}